# -*- coding: utf-8 -*-
# @Time : 2019/2/15 16:06
# @Author : Administrator
# @File : niu.py
# @Project : class_exercise
# @title : 
import requests
from selenium import webdriver

class wang():
    def login(self):
        dr = webdriver.Firefox()
        dr.get("http://www.baidu.com")
        dr.find_element_by_xpath("//*[@id='kw']").send_keys("花瓣")
        dr.find_element_by_xpath("//*[@id='su']").click()

if __name__ == '__main__':
    a = wang()
    a.login()
